package com.yonyou.cyxdms.sysAuth.service.dto;

import com.yonyou.cyx.function.utils.bean.BeanMapperUtil;
import com.yonyou.cyxdms.framework.bean.dto.base.DMSBaseDTO;
import com.yonyou.cyx.framework.bean.entity.base.BasePO;
import java.io.Serializable;


/**
 * <p>
 * 职务
 * </p>
 *
 * @author quankk
 * @since 2019-07-05
 */

public class PositionDTO extends DMSBaseDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * POSITION_ID
     */
        private Integer positionId;
        /**
     * 经销商代码
     */
        private String dealerCode;
        /**
     * 职务代码
     */
        private String positionCode;
        /**
     * 职务名称
     */
        private String positionName;
        /**
     * 职务描述
     */
        private String positionDesc;
        /**
     * 是否有效
     */
        private Integer isValid;
            private Integer organizationId;
            private Integer positionType;
        /**
     * 数据来源
     */
        private Integer dataSources;
            private Boolean isDeleted;
    
    public PositionDTO() {
        super();
    }




    public Integer getPositionId() {
        return positionId;
    }


    public void setPositionId(Integer positionId) {
        this.positionId = positionId;
    }



    public String getDealerCode() {
        return dealerCode;
    }


    public void setDealerCode(String dealerCode) {
        this.dealerCode = dealerCode;
    }



    public String getPositionCode() {
        return positionCode;
    }


    public void setPositionCode(String positionCode) {
        this.positionCode = positionCode;
    }



    public String getPositionName() {
        return positionName;
    }


    public void setPositionName(String positionName) {
        this.positionName = positionName;
    }



    public String getPositionDesc() {
        return positionDesc;
    }


    public void setPositionDesc(String positionDesc) {
        this.positionDesc = positionDesc;
    }



    public Integer getIsValid() {
        return isValid;
    }


    public void setIsValid(Integer isValid) {
        this.isValid = isValid;
    }



    public Integer getOrganizationId() {
        return organizationId;
    }


    public void setOrganizationId(Integer organizationId) {
        this.organizationId = organizationId;
    }



    public Integer getPositionType() {
        return positionType;
    }


    public void setPositionType(Integer positionType) {
        this.positionType = positionType;
    }



    public Integer getDataSources() {
        return dataSources;
    }


    public void setDataSources(Integer dataSources) {
        this.dataSources = dataSources;
    }



    public Boolean getDeleted() {
        return isDeleted;
    }


    public void setDeleted(Boolean isDeleted) {
        this.isDeleted = isDeleted;
    }



    @Override
    public String toString() {
        return "PositionDTO{" +
        "positionId=" + positionId +
        ", dealerCode=" + dealerCode +
        ", positionCode=" + positionCode +
        ", positionName=" + positionName +
        ", positionDesc=" + positionDesc +
        ", isValid=" + isValid +
        ", organizationId=" + organizationId +
        ", positionType=" + positionType +
        ", dataSources=" + dataSources +
        ", isDeleted=" + isDeleted +
        "}";
    }
    /**
     * 将DTO 转换为PO
     * //对某个对象属性进行赋值
     * //BeanMapperUtil.populateValueByMethod(transPO,"setXxx",this.getXxx);
     * @param poClass dto 需要转换的dto
     * @author quankk
     * @since 2018/7/22 0022
     */
    @Override
    public <T extends BasePO> T transDtoToPo(Class<T> poClass) {
        return super.transDtoToPo(poClass);
    }

    /**
     * 将DTO 转换为PO
     * BeanMapperUtil.populateValueByMethod(transPO,"setXxx",this.getXxx);
     * @param po 需要转换的对象
     * @author quankk
     * @since 2018/7/22 0022
     */
    public <T extends BasePO> void transDtoToPo(T po) {
        BeanMapperUtil.copyProperties(this, po, "positionId");
    }

}
